import KSMarketDataApi
print KSMarketDataApi.CThostFtdcMdSpi

api = KSMarketDataApi.CThostFtdcMdApi_CreateFtdcMdApi("abc",False)

api.RegisterFront("tcp://210.5.154.195:13163")
print api


